// 'use strict'
// var router = require('express').Router();

// const accessKey = 'wVLlAeJ6KJm4TE1XrJ6fDnObPBn3JL_V5r3LtTnd';
// const secretKey = 'ynOwkf9fNd36DonmyWxGt8IK5W6NIgc9cznQVkgo';
// const mac = new qiniu.auth.digest.Mac(accessKey, secretKey);



// router.post('/uploadToken', (req, res, next)=>{

// 	let options = {
//   	scope: bucket,
//   	returnBody: '{"key":"$(key)","hash":"$(etag)","fsize":$(fsize),"bucket":"$(bucket)","name":"$(x:name)"}'
// 	}
// 	let putPolicy = new qiniu.rs.PutPolicy(options);
// 	let uploadToken=putPolicy.uploadToken(mac);

// 	res.status(200).send({flag:1, token:uploadToken}).end();
// });

// module.exports = router;